package com.wang.domain.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

@Getter
public enum UserRoleEnum {
    //管理员
    ADMIN(0,"管理员"),
    //用户
    USER(1,"用户");

    @EnumValue
    private final Integer code;
    private final String name;

    UserRoleEnum(final Integer code, final String name) {
        this.code = code;
        this.name = name;
    }
}
